home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 71
/
MOBICLIC 71.ISO
/
mac
/
DATA
/
COMMUN
/
temp0001
/
00238_Script_GESTION_LOGOS_RUBRIQUE
< prev
next >
Wrap
Text File
|
2004-12-05
|
3KB
|
89 lines
global gChoixrub, gL_mobidata,gpiste_logo
property p_cettePiste, p_Nodepiste,p_nom_Acteur,p_flagChoix, pmemchoix,pmyTimer0
property pmode,pmem_titre
----------------------------------
on getPropertyDescriptionList
--la version 2 fonctionne α partir di mobiclic 65
return [#pmode:[#comment:"version 1 ou 2 ?",#format:#integer,#default: 2 ]]
end getPropertyDescriptionList
---------------------------------
on beginsprite me
p_Nodepiste = me.spriteNum
p_cettePiste = sprite(p_Nodepiste)
p_nom_Acteur = p_cettePiste.member.name
p_flagChoix = 0
pmemchoix = 0
gpiste_logo = p_Nodepiste
end
-----------------------------------
on mouseEnter
if the pauseState = 1 then exit
case(pmode) of
1:
if voidP(gChoixrub) then exit
cursor 280
2:
pmem_titre = member("TITRE_RUB").text
cursor 280
member("TITRE_RUB").text = "Autre rubrique"
end case
end
-----------------------------------
on mouseLeave
if the pauseState = 1 then exit
cursor -1
if pmode = 2 and not(voidP(pmem_titre)) then
member("TITRE_RUB").text = pmem_titre
end if
end
-----------------------------------
on mouseUp
if the pauseState = 1 then exit
case(pmode) of
1:--valable jusqu'α MOBICLIC 64
if voidP(gChoixrub) then exit
cursor -1
n = gChoixrub
gChoixrub = VOID
temp = string(gL_mobidata[2].getPropAt(n))
if gL_mobidata[1][3].getPos(temp) = 0 then-- si la rubrique n'est pas dΘsactivΘe
tell the stage
goOtherRub(temp ,0)
end tell
end if
2:--valable α partir de MOBICLIC 65
if not(voidP(pmem_titre)) then
member("TITRE_RUB").text = pmem_titre
end if
go "CHANGE_RUB_"&gimme2digits(zfamily())
end case
end
-----------------------------------
on exitFrame me
case(pmode) of
1:--valable jusqu'α MOBICLIC 64
if not(voidP(gChoixrub)) and p_flagChoix = 0 then
pmemchoix = gChoixrub
pmyTimer0 = the ticks
p_flagChoix = 1
end if
if p_flagChoix = 1 then
if the ticks - pmyTimer0 >= 200 then
p_flagChoix = 0
sprite(1).member = "logo"&localparam("COORD",5)
gChoixrub = VOID
updateStage
else
if gChoixrub <> pmemchoix then
p_flagChoix = 0
p_flagChoix = 0
end if
end if
end if
pass
2:--valable α partir de MOBICLIC 65
--nothing
end case
end
--------------------------------------